<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 开发环境版本，包含了有帮助的命令行警告 -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <style>
        .setColorRed {
            color: red;
        }

        .setFontSize {
            font-size: 50px;
        }

        .setBorder {
            border: 1px solid seagreen;
        }
    </style>
</head>

<body>
    <div id="aaa">
        <!-- 属性形式动态绑定class -->
        <div :class="[activeColor,activeBorder,activeFontSize]">传统class属性的样式</div>
    </div>
    <script>
        const vm = new Vue({
            //绑定到上面view页面中的dom节点，该节点内部就可以使用vue的组件
            el: "#aaa",
            data() {
                return {
                    activeColor: 'setColorRed',
                    activeBorder: 'setBorder',
                    activeFontSize: 'setFontSize'
                }
            },
        });
    </script>
</body>

</html>